package cn.wsalix.biz.entity;

import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.Table;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import cn.anlaser.entity.SimpleEntity;
import cn.anlaser.type.FileTypeEnum;
import cn.wsalix.status.FileEnum;

@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "UPLOAD_FILE")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@EntityListeners({ AuditingEntityListener.class })
@Data
@EqualsAndHashCode(exclude = {  }, callSuper = false)
@ToString(exclude = {  })
public class UploadFile extends SimpleEntity {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1928041771678780098L;
	private String title;
	private String savePath;
	private String httpUrl;
	private FileEnum status;
	private FileTypeEnum type;
	private long fkId;//附件信息，对象ID

}
